package com.smarthome.rpc.base;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.smarthome.common.exception.ExceptionUtils;


public abstract class BaseRpcService {

    protected static Logger LOGGER;

    public BaseRpcService() {
        LOGGER = LoggerFactory.getLogger(this.getClass());
    }

    public void throwsRpcConnectException(String msg,Exception e) {
        ExceptionUtils.throwRpcConnect(msg, e);
    }
    
    public void throwsRpcConnectException(String msg){
        ExceptionUtils.throwRpcConnect(msg,null);
    }
}
